<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMONS-NET: commonsNet.telnet.TelnetOutputStream类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">COMMONS-NET
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classcommonsNet_1_1telnet_1_1TelnetOutputStream.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcommonsNet_1_1telnet_1_1TelnetOutputStream-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">commonsNet.telnet.TelnetOutputStream类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>包装输出流。  
 <a href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html#details">更多...</a></p>
<div class="dynheader">
类 commonsNet.telnet.TelnetOutputStream 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcommonsNet_1_1telnet_1_1TelnetOutputStream.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae870b864ff732245b1932597624966d0"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html#ae870b864ff732245b1932597624966d0">init</a> (client: <a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html">TelnetClient</a>)</td></tr>
<tr class="separator:ae870b864ff732245b1932597624966d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76cd1e69886a868edaad26012a3354f9"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html#a76cd1e69886a868edaad26012a3354f9">close</a> ()</td></tr>
<tr class="memdesc:a76cd1e69886a868edaad26012a3354f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭流  <br /></td></tr>
<tr class="separator:a76cd1e69886a868edaad26012a3354f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca0b1c59d82e428379098299f5ced1a2"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html#aca0b1c59d82e428379098299f5ced1a2">flush</a> ()</td></tr>
<tr class="memdesc:aca0b1c59d82e428379098299f5ced1a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">刷新流  <br /></td></tr>
<tr class="separator:aca0b1c59d82e428379098299f5ced1a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a618d0648a05979a306078d773c66e9dc"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html#a618d0648a05979a306078d773c66e9dc">write</a> (buffer: Array&lt;Byte&gt;)</td></tr>
<tr class="memdesc:a618d0648a05979a306078d773c66e9dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">将字节数组写入流。  <br /></td></tr>
<tr class="separator:a618d0648a05979a306078d773c66e9dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03ff39d7f0bfcedcf22331e33eab0fff"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html#a03ff39d7f0bfcedcf22331e33eab0fff">write</a> (ch: UInt8): Unit</td></tr>
<tr class="memdesc:a03ff39d7f0bfcedcf22331e33eab0fff"><td class="mdescLeft">&#160;</td><td class="mdescRight">将一个字节写入流。  <br /></td></tr>
<tr class="separator:a03ff39d7f0bfcedcf22331e33eab0fff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:ae5538907065759cd681446447e34bdb2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html#ae5538907065759cd681446447e34bdb2">var client</a> : <a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html">TelnetClient</a></td></tr>
<tr class="separator:ae5538907065759cd681446447e34bdb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74f707a2ba450e4a8e3bab41b6bb876c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html#a74f707a2ba450e4a8e3bab41b6bb876c">var convertCRtoCRLF</a> = true</td></tr>
<tr class="separator:a74f707a2ba450e4a8e3bab41b6bb876c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25f29febf9ac27382bf1565feb4e3188"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html#a25f29febf9ac27382bf1565feb4e3188">var lastWasCR</a> : Bool = false</td></tr>
<tr class="separator:a25f29febf9ac27382bf1565feb4e3188"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>包装输出流。 </p>
<p>在二进制模式下，唯一的转换是将 IAC 加倍。 在 ASCII 模式下，如果 convertCRtoCRLF 为真，则任何 CR 都会转换为 CRLF。IAC 会加倍。此外，裸 LF 会转换为 CRLF，裸 CR 会转换为 CR\0 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ae870b864ff732245b1932597624966d0" name="ae870b864ff732245b1932597624966d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae870b864ff732245b1932597624966d0">&#9670;&#160;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public commonsNet.telnet.TelnetOutputStream.init </td>
          <td>(</td>
          <td class="paramname"><em>client</em>:&#160;</td>
          <td class="paramtype">TelnetClient</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a76cd1e69886a868edaad26012a3354f9" name="a76cd1e69886a868edaad26012a3354f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76cd1e69886a868edaad26012a3354f9">&#9670;&#160;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetOutputStream.close </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭流 </p>

</div>
</div>
<a id="aca0b1c59d82e428379098299f5ced1a2" name="aca0b1c59d82e428379098299f5ced1a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca0b1c59d82e428379098299f5ced1a2">&#9670;&#160;</a></span>flush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.telnet.TelnetOutputStream.flush </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>刷新流 </p>

</div>
</div>
<a id="a618d0648a05979a306078d773c66e9dc" name="a618d0648a05979a306078d773c66e9dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a618d0648a05979a306078d773c66e9dc">&#9670;&#160;</a></span>write() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.telnet.TelnetOutputStream.write </td>
          <td>(</td>
          <td class="paramname"><em>buffer</em>:&#160;</td>
          <td class="paramtype">Array&lt;Byte&gt;</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将字节数组写入流。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">buffer</td><td>要写入的字节数组。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td>如果在写入底层流时发生错误。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a03ff39d7f0bfcedcf22331e33eab0fff" name="a03ff39d7f0bfcedcf22331e33eab0fff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03ff39d7f0bfcedcf22331e33eab0fff">&#9670;&#160;</a></span>write() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.telnet.TelnetOutputStream.write </td>
          <td>(</td>
          <td class="paramname"><em>ch</em>:&#160;</td>
          <td class="paramtype">UInt8</td><td>)</td>
          <td>: Unit </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将一个字节写入流。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ch</td><td>要写入的字节。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td>如果在写入底层流时发生错误。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="ae5538907065759cd681446447e34bdb2" name="ae5538907065759cd681446447e34bdb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5538907065759cd681446447e34bdb2">&#9670;&#160;</a></span>var client</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.telnet.TelnetOutputStream.var client : <a class="el" href="classcommonsNet_1_1telnet_1_1TelnetClient.html">TelnetClient</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a74f707a2ba450e4a8e3bab41b6bb876c" name="a74f707a2ba450e4a8e3bab41b6bb876c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74f707a2ba450e4a8e3bab41b6bb876c">&#9670;&#160;</a></span>var convertCRtoCRLF</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.telnet.TelnetOutputStream.var convertCRtoCRLF = true</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a25f29febf9ac27382bf1565feb4e3188" name="a25f29febf9ac27382bf1565feb4e3188"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25f29febf9ac27382bf1565feb4e3188">&#9670;&#160;</a></span>var lastWasCR</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.telnet.TelnetOutputStream.var lastWasCR : Bool = false</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/telnet/<a class="el" href="telnet__output__stream_8cj.html">telnet_output_stream.cj</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacecommonsNet.html">commonsNet</a></li><li class="navelem"><a class="el" href="namespacecommonsNet_1_1telnet.html">telnet</a></li><li class="navelem"><a class="el" href="classcommonsNet_1_1telnet_1_1TelnetOutputStream.html">TelnetOutputStream</a></li>
    <li class="footer">制作者 <img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
